package com.nananren.shiayn7;

public class Client {
    public static void main(String[] args) {
        Context context = new Context(new CaesarCipher(3));
        String plainText = "Hello, World";
        String encryptedText = context.executeStrategy(plainText);
        System.out.println("Encrypted text using Caesar Cipher:" + encryptedText);

        context.setStrategy(new DESEncryption());
        encryptedText = context.executeStrategy(plainText);
        System.out.println("Encryped text using DES:" + encryptedText);
    }
}
